﻿namespace DataAccess.Repository
{
	public interface IUserRepository
	{
		bool ValidUser(string userName, string pwd, out string msg);
		DataAccess.Models.User ValidUserAndGetUser(string userName, string pwd, out string msg);
		DataAccess.Models.User GetUser(string userName);
		bool UpdateUser(DataAccess.Models.User theUser, bool passwordReset);

		Models.User2 GetUser2(string userName);
		Models.Group GetGroupByName(string name);
		System.Collections.Generic.List<Models.User2> GetDocRecieverByDept(int deptID);
		System.Collections.Generic.List<Models.User2> GetDocRecieversByGroups(System.Collections.Generic.List<int> groupIDs);
	}
}
